<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>注册用户信息页面</title>
</head>
<body>
    <form action="xxx" onsubmit="return abcd()" method="GET">
        <p>用户名：<input id="a" type="text" placeholder="请输入用户名..."></p>
        <p>密码：<input id="b" type="text" placeholder="请输入密码名..."></p>
        <p>性别：
            <input type="radio" id="sex" checked="checked" name="sss">男
            <input type="radio" id="sex" name="sss">女
        </p>
        <p>学历：
                <input type="radio" id="edbg" name="ddd">本科
                <input type="radio" id="edbg" name="ddd">大专
        </p>
        <p>个人简介：
            <textarea id="c" cols="10" rows="5"></textarea>
        </p>
        <button onclick="profile()">提交</button>
    </form>
    <script>
        function abcd(){
            var name = document.getElementById("a").value;
            if(name == "admin"){
                return true;
            }else{
                alert("用户名输入错误")
                return false;
            }
            
        }
        function profile(){
            var jianli = document.getElementById("c").value;
            alert(jianli);
        }
        
    </script>
</body>
</html>